import java.io.*;
public class Main{
	public static void main(String[] a){
		float m,n;
		String p="";
		try{
			BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
			p=in.readLine();
		}catch(IOException c){}
		m=Float.parseFloat(p);
		n=(float)(9/5.0)*m+32;
		System.out.println(n);
	}
}